<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of adminsController
 *
 * @author MASTER
 */
class adminsController extends AppController {

    //put your code here
    public $name = 'admins';
    public $uses = array();

    public function beforeFilter() {
        parent::beforeFilter();
        if (($this->Session->check('user')) && ($_SESSION['user'][0]['Tipo'] == 'admin')) {
            $this->Auth->allow();
        } else {
            $this->Auth->deny();
        }
    }
     public function index() {
            
        }

    

}

?>
